package cn.fanchencloud.jenkinsTest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Version: V1.0    <br/>
 * Datetime:   2022/2/3 0:31   <br/>
 * Description: 测试控制器
 *
 * @author: chen
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/hello")
    public String hello() {
        return "Hello World";
    }

    @GetMapping("/{name}")
    public String hello(@PathVariable("name") String name) {
        return "Hello World " + name;
    }
}
